#pragma once
struct Complex {
    double RealPart;
    double ImagePart;
};
#ifndef M_PI
#define M_PI 3.14159265358979323846

#define MAX(a,b) ((a)>(b)?(a):(b))
#define MIN(a,b) ((a)<(b)?(a):(b))
#define ABS(a) ((a)>0?(a):(-(a)))
#define DTWVERYBIG 100000000.0
#endif
void Add_Complex(Complex* src1, Complex* src2, Complex* dst);
void Sub_Complex(Complex* src1, Complex* src2, Complex* dst);
void Multy_Complex(Complex* src1, Complex* src2, Complex* dst);
void getWN(double n, double size_n, Complex* dst);
int FFT_remap(double* src, int size_n);
void FFT(double* src, double* f, double* dst, int size_n, int SampleRate);
    //PhysiologicalSignalProcessLib_API double CompDis(double* A, int A_Len, double* B, int B_Len);

